package cn.com.chengmandian.xh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 租赁先享订单表
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("xh_rent_advance_order")
@ApiModel(value = "XhRentAdvanceOrder对象", description = "租赁先享订单表")
public class XhRentAdvanceOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("合作商ID")
    private Integer merchantsId;

    @ApiModelProperty("订单类型1-用户购买 2-自动续租")
    private Integer type;

    @ApiModelProperty("关联套餐ID")
    private Integer comboId;

    @ApiModelProperty("套餐订单ID")
    private Integer comboOrderId;

    @ApiModelProperty("关联合约ID")
    private Integer contractId;

    @ApiModelProperty("关联门店ID")
    private Integer shopId;

    @ApiModelProperty("会员ID")
    private Integer memberId;

    @ApiModelProperty("先享服务ID")
    private Integer advanceId;

    @ApiModelProperty("总周期数")
    private Integer allCycles;

    @ApiModelProperty("总金额")
    private BigDecimal allMoney;

    @ApiModelProperty("每期金额")
    private BigDecimal cycleMoney;

    @ApiModelProperty("已转支付周期")
    private Integer paidCycles;

    @ApiModelProperty("剩余转支付周期")
    private Integer balanceCycles;

    @ApiModelProperty("支付状态：1-执行中 2-执行完成 3-取消支付")
    private Integer payStatus;

    @ApiModelProperty("自动任务下次支付时间，如未成功将顺延一天")
    private Date nextPayTime;

    @ApiModelProperty("原计划下次支付时间")
    private Date planNextTime;

    @ApiModelProperty("是否已续租0-未处理续租 1-续租成功 2-续租失败")
    private Integer renewStatus;

    @ApiModelProperty("续租说明")
    private String renewMessage;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
